import request from '@/utils/request'
 
/**
 * 分页查询数据
 * @param {Object} params
 */
export function dataListApi(params) {
  return request({
    url: '/api/xmsp/category/data',
    method: 'get',
    params
  })
}

// 新增字典类型
export function addApi(data) {
  return request({
    url: '/api/xmsp/category',
    method: 'post',
    data: data
  })
}

// 修改字典类型
export function editApi(data) {
  return request({
    url: '/api/xmsp/category',
    method: 'put',
    data: data
  })
}

// 删除字典类型
export function deleteApi(ids) {
  return request({
    url: '/api/xmsp/category' + ids,
    method: 'delete'
  })
}


export function findByIdApi(id) {
  return request({
    url: '/api/xmsp/category/'+id,
    method: 'get'
  })
}